home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / initscripts.postrm < prev    next >
Text File  |  2008-10-14  |  695b  |  54 lines

  1. #! /bin/sh
  2. #
  3. # initscripts postrm
  4. #
  5.  
  6. set -e
  7.  
  8. case "$1" in
  9.   purge)
  10.     #
  11.     # Remove abandoned conffiles
  12.     #
  13.     rm -f \
  14.         /etc/init.d/bootclean \
  15.         /etc/init.d/bootclean.dpkg-old \
  16.         /etc/init.d/bootclean.sh \
  17.         /etc/init.d/bootclean.sh.dpkg-old
  18.  
  19.     #
  20.     # Remove configuration files
  21.     #
  22.     rm -f \
  23.         /etc/default/rcS \
  24.         /etc/nologin \
  25.         /etc/motd.tail \
  26.         /etc/motd.static \
  27.         /etc/motd
  28.  
  29.     #
  30.     # Remove state files
  31.     #
  32.     rm -f /var/lib/initscripts/nologin
  33.  
  34.     #
  35.     # Remove run time state files
  36.     #
  37.     rm -f /var/run/motd
  38.  
  39.     #
  40.     # Remove log files
  41.     #
  42.     rm -f \
  43.         /var/log/dmesg \
  44.         /var/log/boot \
  45.         /var/log/fsck/checkroot \
  46.         /var/log/fsck/checkfs
  47.  
  48.     # Remove rc symlinks ?
  49.     # Remove /dev/pts and /dev/shm ?
  50.     ;;
  51. esac
  52.  
  53. :
  54.